import React from "react";
import { useNavigate, Outlet, useLocation } from "react-router-dom";
import "./index.css";

export default function YuePay() {
  const navigate = useNavigate();
  const loca = useLocation();
  function goPay() {
    navigate("/home/submitsuccess/banlancepaysuccess", {
      state: loca.state,
    });
  }
  return (
    <div className="tyc_yunepay">
      <div>
        <button onClick={goPay}>立即支付</button>
        <Outlet></Outlet>
      </div>
    </div>
  );
}
